package com.ruoyi.project.wodemand.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.wodemand.mapper.TLogSheetdealMapper;
import com.ruoyi.project.wodemand.domain.TLogSheetdeal;
import com.ruoyi.project.wodemand.service.ITLogSheetdealService;

/**
 * 流程审批日志Service业务层处理
 * 
 * @author lt
 * @date 2020-04-14
 */
@Service
public class TLogSheetdealServiceImpl implements ITLogSheetdealService 
{
    @Autowired
    private TLogSheetdealMapper tLogSheetdealMapper;

    /**
     * 查询流程审批日志
     * 
     * @param sheetId 流程审批日志ID
     * @return 流程审批日志
     */
    @Override
    public TLogSheetdeal selectTLogSheetdealById(Long sheetId)
    {
        return tLogSheetdealMapper.selectTLogSheetdealById(sheetId);
    }

    /**
     * 查询流程审批日志列表
     * 
     * @param tLogSheetdeal 流程审批日志
     * @return 流程审批日志
     */
    @Override
    public List<TLogSheetdeal> selectTLogSheetdealList(TLogSheetdeal tLogSheetdeal)
    {
        return tLogSheetdealMapper.selectTLogSheetdealList(tLogSheetdeal);
    }

    /**
     * 新增流程审批日志
     * 
     * @param tLogSheetdeal 流程审批日志
     * @return 结果
     */
    @Override
    public int insertTLogSheetdeal(TLogSheetdeal tLogSheetdeal)
    {
        return tLogSheetdealMapper.insertTLogSheetdeal(tLogSheetdeal);
    }

    /**
     * 修改流程审批日志
     * 
     * @param tLogSheetdeal 流程审批日志
     * @return 结果
     */
    @Override
    public int updateTLogSheetdeal(TLogSheetdeal tLogSheetdeal)
    {
        return tLogSheetdealMapper.updateTLogSheetdeal(tLogSheetdeal);
    }

    /**
     * 批量删除流程审批日志
     * 
     * @param sheetIds 需要删除的流程审批日志ID
     * @return 结果
     */
    @Override
    public int deleteTLogSheetdealByIds(Long[] sheetIds)
    {
        return tLogSheetdealMapper.deleteTLogSheetdealByIds(sheetIds);
    }

    /**
     * 删除流程审批日志信息
     * 
     * @param sheetId 流程审批日志ID
     * @return 结果
     */
    @Override
    public int deleteTLogSheetdealById(Long sheetId)
    {
        return tLogSheetdealMapper.deleteTLogSheetdealById(sheetId);
    }
}
